<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"
		+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>主页</title>
    <style type="text/css">
    	#box{
    		width:850px;
    		margin:0 auto;
    	}
    	#top{
    	width:850px;
    	height:120px;
    	background-color:PINK;
    	border:2px solid PINK;
    	}
    	#left{
    	widht:160px;	
    	height:498px;
    	float:left;
    	background-color:PINK;
    	text-align: left;
    	border:1px solid PINK;
    	
    	
    	}
    	#banner{
    	float:left;
    		width:850px;
    		height:41px;
    		border:2px solid PINK;
    		
    	}
    	#right{
    	 width:741px;
    	 height:500px;
    	 float:left;
    	     	 
    	}
    	#if{
    		width:744px;
    		height:496px;
    		border:2px solid PINK;
    	
    	}
    	body{
    		widht:100%;
    		height:100%;
    		
    	}
    	a{
    		text-decoration: none;
    		
    	}
    	ul{
    		list-style-type: none;
    		padding:0 20px;
    	}
    	#banneruser{
    		width:160px;
    		height:22px;
    	    margin-top: 9px;
            margin-left: 18px;
    	}
    </style>
  </head>
  
  <body>
  	<div id="box">
    	<div id="top">
    		
    	</div>
    	<div id="banner">
    		<!-- 显示当前用户，参数需和登录页用户名字段相符 -->
    		<div id="banneruser">当前用户:<a href=""><%=request.getParameter("username") %></a></div>
    	</div>
    	<div id="left">
    	<ul>
			<li>
				后台模块
			</li>
			<li>
				<a href="AfterPage.jsp" target="frame">前台信息</a>
			</li>
    		<li>
    			<a href="OperatorServlet?op=select" target="frame">显示产品</a>
    		</li>
    		<li>
    			<a href="insert.jsp" target="frame">添加产品</a>
    		</li>
			<li>
				<a href="new.jsp" target="frame">新闻管理</a>
			</li>
			<li>
				<a href="UserServlet?op=select" target="frame">显示用户</a>
			</li>
    	</ul>    
    	</div>
    	
    	<div id="right">
    		<iframe id="if" name="frame"></iframe>
    	</div>
   </div>
  </body>
</html>
